﻿<UserControl x:Class="SilverlightDemo.SilverlightDemoPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Loaded="UserControl_Loaded" xmlns:SilverlightDemo="clr-namespace:SilverlightDemo" >
    <UserControl.Resources>
        <Storyboard x:Name="Intro">
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="TitleTextBlock" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeySpline="0,0,0.328999996185303,1" KeyTime="00:00:01.3000000" Value="-1"/>
                <SplineDoubleKeyFrame KeySpline="0.677999973297119,0,0.391999989748001,1" KeyTime="00:00:02.6000000" Value="1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalExample" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1010"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="1010"/>
                <SplineDoubleKeyFrame KeySpline="0,0,0.398000001907349,0.999000012874603" KeyTime="00:00:01.7000000" Value="-30"/>
                <SplineDoubleKeyFrame KeySpline="0.629999995231628,0.00400000018998981,0.495999991893768,1" KeyTime="00:00:02" Value="0"/>
                <SplineDoubleKeyFrame KeySpline="0,0,0.495999991893768,1" KeyTime="00:00:02.6000000" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalExample" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="2"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="2"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1" KeySpline="0,0,0.5,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.6000000" Value="1" KeySpline="0,0,0.5,1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalExample" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="2"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="2"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1" KeySpline="0,0,0.5,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.6000000" Value="1" KeySpline="0,0,0.5,1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalExampleSettings" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1010"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="1010"/>
                <SplineDoubleKeyFrame KeySpline="0,0,0.398000001907349,0.999000012874603" KeyTime="00:00:01.7000000" Value="-150"/>
                <SplineDoubleKeyFrame KeySpline="0.629999995231628,0.00400000018998981,0.495999991893768,1" KeyTime="00:00:02" Value="-120"/>
                <SplineDoubleKeyFrame KeySpline="0,0,0.495999991893768,1" KeyTime="00:00:02.6000000" Value="0"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalExampleSettings" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="2"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="2"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1" KeySpline="0,0,0.5,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.6000000" Value="1" KeySpline="0,0,0.5,1"/>
            </DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalExampleSettings" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="2"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="2"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1" KeySpline="0,0,0.5,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.6000000" Value="1" KeySpline="0,0,0.5,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalTitleShadow" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0.00065089238341897726"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="0.5" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalTitle" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0.00065089238341897726"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="1" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalSettingsShadow" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0.00065089238341897726"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="0.5" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalSettings" Storyboard.TargetProperty="(UIElement.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0.00065089238341897726"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="1" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalTitleShadow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="1.3" KeySpline="0,0,0.33899998664856,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="1" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalTitle" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="1.3" KeySpline="0,0,0.33899998664856,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="1" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalSettingsShadow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="1.3" KeySpline="0,0,0.33899998664856,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="1" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalSettings" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="1.3" KeySpline="0,0,0.33899998664856,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="1" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalTitleShadow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="1.3" KeySpline="0,0,0.33899998664856,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="1" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalTitle" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="1.3" KeySpline="0,0,0.33899998664856,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="1" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalSettingsShadow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="1.3" KeySpline="0,0,0.33899998664856,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="1" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalSettings" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02.7000000" Value="1.3" KeySpline="0,0,0.33899998664856,1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="1" KeySpline="0.689000010490417,0,1,1"/>
            </DoubleAnimationUsingKeyFrames>

            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalTitle" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:02.1000000" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:02.7000000" Value="#FFF5FF00" KeySpline="0,0,0.33899998664856,1"/>
                <SplineColorKeyFrame KeyTime="00:00:03" Value="#FF000000" KeySpline="0.689000010490417,0,1,1"/>
            </ColorAnimationUsingKeyFrames>

            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalSettings" Storyboard.TargetProperty="(TextBlock.Foreground).(SolidColorBrush.Color)">
                <SplineColorKeyFrame KeyTime="00:00:02.1000000" Value="#FF000000"/>
                <SplineColorKeyFrame KeyTime="00:00:02.7000000" Value="#FFF5FF00" KeySpline="0,0,0.33899998664856,1"/>
                <SplineColorKeyFrame KeyTime="00:00:03" Value="#FF000000" KeySpline="0.689000010490417,0,1,1"/>
            </ColorAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalTitleShadow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0"/>
                <SplineDoubleKeyFrame KeySpline="0,0,0.33899998664856,1" KeyTime="00:00:02.7000000" Value="10"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="0"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalSettingsShadow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0"/>
                <SplineDoubleKeyFrame KeySpline="0,0,0.33899998664856,1" KeyTime="00:00:02.7000000" Value="10"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="0"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalTitleShadow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0"/>
                <SplineDoubleKeyFrame KeySpline="0,0,0.33899998664856,1" KeyTime="00:00:02.7000000" Value="10"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="0"/>
            </DoubleAnimationUsingKeyFrames>

            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ScalingModalSettingsShadow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
                <SplineDoubleKeyFrame KeyTime="00:00:02.1000000" Value="0"/>
                <SplineDoubleKeyFrame KeySpline="0,0,0.33899998664856,1" KeyTime="00:00:02.7000000" Value="10"/>
                <SplineDoubleKeyFrame KeyTime="00:00:03" Value="0"/>
            </DoubleAnimationUsingKeyFrames>


        </Storyboard>
        <LinearGradientBrush x:Key="GroupBackground" EndPoint="0.5,1" StartPoint="0.5,0" SpreadMethod="Pad" MappingMode="RelativeToBoundingBox">
            <GradientStop Color="#FFFFFFFF" Offset="0"/>
            <GradientStop Color="#FFFFFFFF" Offset="1"/>
            <GradientStop Color="#FF989DB4" Offset="0.518"/>
            <GradientStop Color="#FFDADBE1" Offset="0.445"/>
        </LinearGradientBrush>

    </UserControl.Resources>

    <Grid x:Name="MainGrid" >
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                <GradientStop Color="#FFDADBE1" Offset="0.2"/>
                <GradientStop Color="#FF7B8097" Offset="0.7"/>
                <GradientStop Color="#FFFFFFFF" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>

  
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition Width="500" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
            
        <ContentControl Name="DisableControl" Grid.Column="1" >
            <Grid x:Name="InnerGrid" >
                <Grid.RowDefinitions >
                    <RowDefinition Height="50" />
                    <RowDefinition Height="500" />
                    <RowDefinition Height="150" />
                </Grid.RowDefinitions>
                

                <TextBlock Grid.Row="0" Grid.ColumnSpan="3" Margin="0,5,0,0" Foreground="Black"  x:Name="TitleTextBlock" HorizontalAlignment="Center" TextAlignment="Center" FontSize="24"  VerticalAlignment="Top" Text="Silverlight Controls Demo" RenderTransformOrigin="0.5,0.5" >
        	<TextBlock.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform ScaleX="1" ScaleY="1"/>
        			<SkewTransform AngleX="0" AngleY="0"/>
        			<RotateTransform Angle="0"/>
        			<TranslateTransform X="0" Y="0"/>
        		</TransformGroup>
        	</TextBlock.RenderTransform>
                </TextBlock>



                <Grid x:Name="ScalingModalExample" Grid.Row="1" Grid.Column="1" RenderTransformOrigin="0.5,0.5" Background="{StaticResource GroupBackground}" Canvas.ZIndex="20" >
                    <Grid.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Grid.RenderTransform>
                    <Grid >
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition Height="50" />
                        </Grid.RowDefinitions>

                        <TextBlock Margin="10" TextWrapping="Wrap" VerticalAlignment="Top" ><Run Text="     The Scaling Modal Control can be used when modal pop-up functionality is desired." /><Run Text=" "/><LineBreak /><Run Text=" "/><Run Text="     It takes a given control and presents it to the user while blocking out mouse input from interacting with the rest of the application.  Unlike a MessageBox, the control lives in the same window as the rest of the application." /><Run Text=" "/><LineBreak /><Run Text=" "/><Run Text="     The current implementation of the Scaling Modal Control has the control acting as a singleton.  This gives easy access of the functionality to any controls acting as pop-ups (so they can easily close themselves and return control to the main application).  However, this pattern also prevents more than one Scaling Modal Control from being used per application." /><Run Text=" "/><LineBreak /><Run Text=" "/><Run Text="     To use the Scaling Modal Control, call the Initialize() method when setting up the app, and pass it a parent for the control." /><Run Text=" "/><LineBreak /><Run Text=" "/><Run Text="     Then, just call Expand(), passing in the control that should be popped up..." /><Run Text=" "/><LineBreak /><Run Text=" "/><Run Text="     (Click on the Expand button below)" /></TextBlock>
                        <Button Grid.Row="1" Click="ExpandButton_Click" Content="Expand" Width="150"  Height="30" />

                        <Border Grid.ColumnSpan="1" Grid.RowSpan="2" BorderThickness="3" BorderBrush="{StaticResource StandardBorderBrush}" />

                    </Grid>
                </Grid>
                <Grid Grid.Row="2" Grid.Column="1" x:Name="ScalingModalExampleSettings" RenderTransformOrigin="0.5,0.5" Background="{StaticResource GroupBackground}" Canvas.ZIndex="19" >
                    <Grid.RenderTransform>
                        <TransformGroup>
                            <ScaleTransform/>
                            <SkewTransform/>
                            <RotateTransform/>
                            <TranslateTransform/>
                        </TransformGroup>
                    </Grid.RenderTransform>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>

                        <TextBlock TextAlignment="Right" VerticalAlignment="Center" Margin="5" ><Run Text="Animation:"/></TextBlock>
                        <ComboBox x:Name="AnimationSelectionComboBox" Grid.Column="1" Margin="5" VerticalAlignment="Center" SelectionChanged="AnimationSelectionComboBox_SelectionChanged" >
                            <ComboBoxItem x:Name="Random" Content="Random"  />
                            <ComboBoxItem x:Name="None" Content="None"  />
                            <ComboBoxItem x:Name="ScaleI" Content="Scale In"  />
                            <ComboBoxItem x:Name="ScaleO" Content="Scale Out"  />
                            <ComboBoxItem x:Name="ScaleV" Content="Scale Vertical"  />
                            <ComboBoxItem x:Name="ScaleH" Content="Scale Horizontal"  />
                            <ComboBoxItem x:Name="RotateCW" Content="Rotate Clockwise"  />
                            <ComboBoxItem x:Name="RotateCCW" Content="Rotate Counter-Clockwise"  />
                            <ComboBoxItem x:Name="SlideR" Content="Slide Right"  />
                            <ComboBoxItem x:Name="SlideL" Content="Slide Left"  />
                            <ComboBoxItem x:Name="SlideT" Content="Slide Top"  />
                            <ComboBoxItem x:Name="SlideB" Content="Slide Bottom"  />
                            <ComboBoxItem x:Name="Fade" Content="Fade"  />
                            <ComboBoxItem x:Name="Twist" Content="Twist"  />
                            <ComboBoxItem x:Name="Skew1" Content="Skew 1"  />
                            <ComboBoxItem x:Name="Skew2" Content="Skew 2"  />
                            <ComboBoxItem x:Name="Skew3" Content="Skew 3"  />
                            <ComboBoxItem x:Name="Skew4" Content="Skew 4"  />
                            <ComboBoxItem x:Name="Flip" Content="Flip"  />
                        </ComboBox>

                        <TextBlock Grid.Row="1" TextAlignment="Right" VerticalAlignment="Center" Margin="5" ><Run Text="Background Opacity:"/></TextBlock>
                        <Slider Grid.Row="1" Grid.Column="1" Margin="5" Minimum="0" Maximum="1.0" VerticalAlignment="Center" x:Name="BackgroundOpacitySlider" ValueChanged="BackgroundOpacitySlider_ValueChanged" />

                        <Border Grid.ColumnSpan="2" Grid.RowSpan="2" BorderThickness="3" BorderBrush="{StaticResource StandardBorderBrush}" />

                    </Grid>
                </Grid>





                <TextBlock Height="Auto" Margin="11,36,0,0" VerticalAlignment="Top" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" TextWrapping="Wrap" FontWeight="Bold" FontFamily="Arial" FontSize="18" FontStyle="Italic" x:Name="ScalingModalTitleShadow" Canvas.ZIndex="50" RenderTransformOrigin="0.1,0.5">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform><Run Foreground="#AA000000" Text="Scaling Modal Control:"/></TextBlock>


                <TextBlock Height="Auto" Margin="10,35,0,0" VerticalAlignment="Top" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" TextWrapping="Wrap" FontWeight="Bold" FontFamily="Arial" FontSize="18" FontStyle="Italic" x:Name="ScalingModalTitle" Canvas.ZIndex="50" RenderTransformOrigin="0.1,0.5" Foreground="#FF000000">
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform><Run Foreground="#FF3E79FF" Text="Scaling Modal Control:"/></TextBlock>



                <TextBlock Height="Auto" Margin="11,506,0,0" VerticalAlignment="Top" Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" TextWrapping="Wrap" FontWeight="Bold" FontFamily="Arial" FontSize="16" FontStyle="Italic" x:Name="ScalingModalSettingsShadow" Canvas.ZIndex="50" RenderTransformOrigin="0.1,0.5" IsHitTestVisible="False" >
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform><Run Foreground="#AA000000" Text="Settings:"/></TextBlock>



                <TextBlock Height="Auto" Margin="10,505,0,0" VerticalAlignment="Top" Grid.Column="1" Grid.Row="1" Grid.RowSpan="2" TextWrapping="Wrap" FontWeight="Bold" FontFamily="Arial" FontSize="16" FontStyle="Italic" x:Name="ScalingModalSettings" Canvas.ZIndex="50" RenderTransformOrigin="0.1,0.5" Foreground="#FF000000" IsHitTestVisible="False" >
            	<TextBlock.RenderTransform>
            		<TransformGroup>
            			<ScaleTransform/>
            			<SkewTransform/>
            			<RotateTransform/>
            			<TranslateTransform/>
            		</TransformGroup>
            	</TextBlock.RenderTransform><Run Foreground="#FF3E79FF" Text="Settings:"/></TextBlock>


            </Grid>

        </ContentControl>
    </Grid>
</UserControl>
